<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>个人主页</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            height: 100vh;
        }
        .sidebar {
            width: 200px;
            background-color: #f8f9fa;
            padding: 20px;
            box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        }
        .sidebar ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .sidebar li {
            margin-bottom: 10px;
        }
        .sidebar a {
            display: block;
            padding: 10px;
            color: #333;
            text-decoration: none;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        .sidebar a:hover {
            background-color: #007bff;
            color: white;
        }
        .main-content {
            flex: 1;
            padding: 20px;
        }
        iframe {
            width: 100%;
            height: 100%;
            border: none;
            background-color: #fff;
        }
    </style>
</head>
<body>
<c:if test="${empty user}">
    <c:redirect url="/luyou/login"/>
</c:if>
<div class="sidebar">
    <ul>
        <li><a href="${pageContext.request.contextPath}/luyou/shouye" target="_top">返回首页</a></li>
        <li><a href="${pageContext.request.contextPath}/user/gerenxinxi" target="mainFrame">个人资料</a></li>
        <li><a href="${pageContext.request.contextPath}/collection/qianlist" target="mainFrame">查看收藏</a></li>
        <li><a href="${pageContext.request.contextPath}/dianzan/qianlist" target="mainFrame">查看点赞</a></li>
        <li><a href="${pageContext.request.contextPath}/order/qianlist" target="mainFrame">查看订单</a></li>
    </ul>
</div>
<div class="main-content">
    <iframe name="mainFrame" src="${pageContext.request.contextPath}/user/gerenxinxi"></iframe>
</div>
</body>
</html>
